How to enable screensharing from custom payload in profilemanager ?

dear all !


I am looking for a way to centrally enable/disable screensharing on multiple computers.

All the computers are registered on a profilemanager server 5.1, and with El Capitan 10.11.4.


I have already found a way to enable it from the command line :

$ sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false

$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist


But I'd like to avoid going on each computer to apply this ... And further more, I'd like to handle permissions too e.g : add or remove a network group allowed to connect to remote computer through screensharing.


thanks for your help !

Posted on May 10, 2016 7:59 AM

Reply
1 reply

May 11, 2016 2:43 AM in response to manufromga

If all the required settings can already be done using the defaults write command then they can also be done using a Custom Profile in Profile Manager.


However there are two more typical approaches for fully configuring Screen Sharing or more typically 'Remote Management'.


Option 1

Write a shell script to do the various steps using the built-in kickstart tool. See - Apple Remote Desktop: Configuring remotely via command line (kickstart) - Apple Support


Option 2

Use the Apple Remote Desktop administration tool (which you have to buy) to create a pre-configured install package containing all your desired settings. See - https://www.lynda.com/Remote-Desktop-tutorials/Creating-custom-client-installer/ 163417/182841-4.html


I use Option 1 as part of my DeployStudio workflow to configure freshly built Macs.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to enable screensharing from custom payload in profilemanager ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.